/**
 * 
 */
package org.jrm.mechanics.rules;

import java.io.InputStream;
import java.util.HashMap;

import org.jrm.mechanics.Usable;

/**
 * @author LAP
 *
 */
public class InventoryItemsCountConstraintsBuilder {
	
	private HashMap<Usable, Integer> itemsCountConstaraint;
	
	public InventoryItemsCountConstraintsBuilder(InputStream stream) {
		if (stream == null) throw new NullPointerException("Input stream must be not null");
		itemsCountConstaraint = new HashMap<Usable, Integer>();
		//TODO create constraints.xml parse code from stream
	}
	
	public int getItemCountConstraint(Usable item) {
		return itemsCountConstaraint.get(item);
	}
}
